package com.example.demo.controller;

import com.example.demo.bean.UserBean;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ml
 * @create 2017-08-02--17:12
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/register")
    public String register(UserBean userBean){
        userService.register(userBean);
        return "注册成功！";
    }
}
